package com.jk.dmsearchprovider.dao;

import com.jk.dmcommon.djhEntity.CityEntity;
import com.jk.dmcommon.djhEntity.GoodsTypeEntity;
import com.jk.dmcommon.entity.ShopEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SearchDao {

    List<CityEntity> selectAllCity();

    List<GoodsTypeEntity> selectAllType();

    List<ShopEntity> selectGoodsByType(@Param("cityId") String cityId,@Param("typeId") String typeId,@Param("timeShow") String timeShow, @Param("searchButtongoods") String searchButtongoods,@Param("orderdesc") Integer orderdesc);

    Integer selectGoodsCount(@Param("cityId") String cityId,@Param("typeId") String typeId,@Param("timeShow") String timeShow, @Param("searchButtongoods") String searchButtongoods,@Param("orderdesc") Integer orderdesc);
}
